package io.qar.restaurants.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.qar.commons.tools.utils.DateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import io.qar.commons.mybatis.dto.CreateAndUpdatedDTO;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
* 餐厅信息表
*
* @author yyyyjinying 1020066395@qq.com
* @since 3.0 2024-06-02
*/
@Data
@ApiModel(value = "餐厅信息表")
public class RestaurantsDTO extends CreateAndUpdatedDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "餐厅ID")
    private Long restaurantId;
    @ApiModelProperty(value = "餐厅名称")
    private String name;
    @ApiModelProperty(value = "餐厅描述")
    private String description;
    @ApiModelProperty(value = "纬度")
    private BigDecimal latitude;
    @ApiModelProperty(value = "经度")
    private BigDecimal longitude;
    @ApiModelProperty(value = "餐厅地址")
    private String address;
    @ApiModelProperty(value = "营业时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private String operatingHours;
    @ApiModelProperty(value = "餐厅评分")
    private BigDecimal rating;
    @ApiModelProperty(value = "创建时间")
    private Date createdAt;
    @ApiModelProperty(value = "更新时间")
    private Date updatedAt;

}